package com.caituo.idouyou.user.action;

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.json.JSONArray;
import org.json.JSONObject;

import com.caituo.idouyou.user.common.exception.ResultCodeIsNullException;
import com.caituo.idouyou.user.common.util.ReturnCodeUtil;
import com.caituo.idouyou.user.common.util.HttpUtil;
import com.caituo.idouyou.user.domain.UserDomain;
import com.caituo.idouyou.user.service.UserService;
import com.caituo.idouyou.user.system.action.BaseAction;
import com.opensymphony.xwork2.ActionSupport;
import com.sun.org.apache.bcel.internal.generic.NEW;

public class UserAction extends BaseAction<UserService,UserDomain>{
	
	
	
	@Override
	public String execute() throws Exception {
		
		try {
			baseService.insertUsert(baseDomian);
			JSONObject jsonObject = new JSONObject();
			jsonObject.put("data","111223334");
			JSONArray jsonArray = new JSONArray();
			
			ReturnCodeUtil.setValue("111", "11");
			HttpUtil.retJSONString(jsonObject.toString());
		}catch (ResultCodeIsNullException e) {
			HttpUtil.retExceptionString(e);
			log.error(e.getMessage());
		}
		return null;
		
	}

	
}
